import React from "react";

import CaptchaTitle from "./component/title";
import CaptchaButton from "./component/button";

import "./index.css";

export default function Captcha(props) {
  const {
    mainTitle,
    dingTitle,
    imgUrl,
    movingColor,
    getImgVerify,
  } = props;
  return (
    <div className="captcha">
      <CaptchaTitle
        mainTitle={mainTitle}
        dingTitle={dingTitle}
      />
      <CaptchaButton
        imgUrl={imgUrl}
        movingColor={movingColor}
        getImgVerify={getImgVerify}
      />
    </div>
  );
}
